import wiringpi

OUTPUT = 1

PIN_TO_PWM = 13
c=0
ts = int((c/180*2+0.5)/20*1023)
wiringpi.wiringPiSetup()
wiringpi.pinMode(PIN_TO_PWM,OUTPUT)
wiringpi.softPwmCreate(PIN_TO_PWM,0,200) # Setup PWM using Pin, Initial Value and Range parameters
while 1:
    print(1)
    wiringpi.softPwmWrite(PIN_TO_PWM,5)
# for time in range(0,4):
#     for brightness in range(0,100): # Going from 0 to 100 will give us full off to full on
#         wiringpi.softPwmWrite(PIN_TO_PWM,brightness) # Change PWM duty cycle
#         wiringpi.delay(10) # Delay for 0.2 seconds
#     for brightness in reversed(range(0,100)):
#         wiringpi.softPwmWrite(PIN_TO_PWM,brightness)
#         wiringpi.delay(10)
